All Functions of Week 1

ordered

{dplyr}

Create an ordered factor

length

{base}

Returns number of elements in an object

setwd

{base}

Set Working Directory

min

{base}

Get minimum of a vector

is.na

{base}

Check if a value is NA/elements of vector are NA

mean

{base}

Get mean of a vector

mutate

{dplyr}

Create new variables

par

{graphics}

Set parameters of the plotting device

c

{base}

Combine values/vectors into a vector

sd

{stats}

Get standard deviation of a vector

names

{base}

Get or set names of an object

str

{utils}

Get the structure of an R object

plot

{graphics}

Generic function from base R to produce a plot

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

summary

{base}

Obtain summary statistics or detailed regression output

seq

{base}

Create a sequence

median

{stats}

Get median of a vector

library

{base}

Load an R package

filter

{dplyr}

Filter out rows of a data frame according to logical vector

head

{utils}

Show first 5 rows of a data frame

cut

{base}

Convert Numeric to Factor

var

{stats}

Calculate variance

max

{base}

Get maximum of a vector

read_excel

{readxl}

Read an Excel file

range

{base}

Return range of values

dnorm

{stats}

Density distribution for the normal distribution

The end!